import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SArenaCrossGroupBattle
    
    export  class SArenaCrossGroupBattle
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.arenaId);
            this.entityIdOne.__write(arg1);
            arg1.writeString(this.nameOne);
            arg1.writeShort(this.careerOne);
            arg1.writeInt(this.warfareOne);
            arg1.writeInt(this.winNumOne);
            arg1.writeInt(this.loseNumOne);
            this.entityIdTwo.__write(arg1);
            arg1.writeString(this.nameTwo);
            arg1.writeShort(this.careerTwo);
            arg1.writeInt(this.warfareTwo);
            arg1.writeInt(this.winNumTwo);
            arg1.writeInt(this.loseNumTwo);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.arenaId = arg1.readInt();
            this.entityIdOne = new SEntityId();
            this.entityIdOne.__read(arg1);
            this.nameOne = arg1.readString();
            this.careerOne = arg1.readShort();
            this.warfareOne = arg1.readInt();
            this.winNumOne = arg1.readInt();
            this.loseNumOne = arg1.readInt();
            this.entityIdTwo = new SEntityId();
            this.entityIdTwo.__read(arg1);
            this.nameTwo = arg1.readString();
            this.careerTwo = arg1.readShort();
            this.warfareTwo = arg1.readInt();
            this.winNumTwo = arg1.readInt();
            this.loseNumTwo = arg1.readInt();
            return;
        }

        public /* var */arenaId: int;

        public /* var */entityIdOne: SEntityId;

        public /* var */nameOne: string;

        public /* var */careerOne: int;

        public /* var */warfareOne: int;

        public /* var */winNumOne: int;

        public /* var */loseNumOne: int;

        public /* var */entityIdTwo: SEntityId;

        public /* var */nameTwo: string;

        public /* var */careerTwo: int;

        public /* var */warfareTwo: int;

        public /* var */winNumTwo: int;

        public /* var */loseNumTwo: int;
    }
